package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;

@TableName("jiaoshi")
public class JiaoshiEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public JiaoshiEntity() {
		
	}
	
	public JiaoshiEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@TableId
	private Long id;

	private String zhanghao;

	private String mima;

	private String xingming;

	private String bianhao;

	private String xingbie;

					
	private Integer nianling;

	private String shouji;

	private String shenfenzheng;

	private String zhaopian;

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setZhanghao(String zhanghao) {
		this.zhanghao = zhanghao;
	}

	public String getZhanghao() {
		return zhanghao;
	}

	public void setMima(String mima) {
		this.mima = mima;
	}

	public String getMima() {
		return mima;
	}

	public void setXingming(String xingming) {
		this.xingming = xingming;
	}

	public String getXingming() {
		return xingming;
	}

	public void setBianhao(String bianhao) {
		this.bianhao = bianhao;
	}

	public String getBianhao() {
		return bianhao;
	}

	public void setXingbie(String xingbie) {
		this.xingbie = xingbie;
	}

	public String getXingbie() {
		return xingbie;
	}

	public void setNianling(Integer nianling) {
		this.nianling = nianling;
	}

	public Integer getNianling() {
		return nianling;
	}

	public void setShouji(String shouji) {
		this.shouji = shouji;
	}

	public String getShouji() {
		return shouji;
	}

	public void setShenfenzheng(String shenfenzheng) {
		this.shenfenzheng = shenfenzheng;
	}

	public String getShenfenzheng() {
		return shenfenzheng;
	}

	public void setZhaopian(String zhaopian) {
		this.zhaopian = zhaopian;
	}

	public String getZhaopian() {
		return zhaopian;
	}

}
